package com.example.foods.data;

import com.example.foods.entity.FoodCategory;
import com.example.foods.entity.FoodDetail;
import com.example.foods.entity.FoodTag;
import com.example.foods.entity.Foods;

import java.util.List;

public interface FoodsMapper {
    //根据菜品名称查询菜品信息
    Foods findByFoodName(String foodName);

    Foods findById(Integer id);

    int saveFoods(Foods foods);

    //保存菜品详情信息
    int saveFoodDetails(List<FoodDetail> detailList);

    //保存菜品分类
    int saveFoodCategories(List<FoodCategory> foodCategoryList);

    //保存菜品标签
    int saveFoodTags(List<FoodTag> foodTagList);

     List<Foods> findAll();

     //删除鲜花
    int deleteflowers(int id);
}
